package com.sen.common.widget.media;

import com.sen.common.widget.Attributes;
import com.sen.common.widget.Component;

/**
 * @author sen
 */
public class Href extends Component {
	private static final String DUMB_HREF = "javascript:void(0);";

	private String href;

	public Href() {
		super("a");
	}

	public Href href(String href) {
		this.href = href;
		return this;
	}

	public Href dumb() {
		this.href = DUMB_HREF;
		return this;
	}

	protected String specialAttributes() {
		return super.specialAttributes() + Attributes.attrIfNonblank("href", href);
	}
}
